$OpenBSD: patch-src_modules_cal-config-weather_evolution-cal-config-weather_c,v 1.1 2017/05/30 12:32:59 ajacoutot Exp $

From 4612b707975f8925e251b5afd34d49334107c129 Mon Sep 17 00:00:00 2001
From: Antoine Jacoutot <ajacoutot@gnome.org>
Date: Tue, 30 May 2017 14:18:49 +0200
Subject: Bug 783191 - Fix conditional to prevent a compiler warning

Index: src/modules/cal-config-weather/evolution-cal-config-weather.c
--- src/modules/cal-config-weather/evolution-cal-config-weather.c.orig
+++ src/modules/cal-config-weather/evolution-cal-config-weather.c
@@ -28,7 +28,7 @@
 
 #include <e-util/e-util.h>
 
-#if HAVE_NL_LANGINFO
+#if defined(HAVE_NL_LANGINFO)
 #include <langinfo.h>
 #endif
 
@@ -170,7 +170,7 @@ is_locale_metric (void)
 {
 	const gchar *fmt;
 
-#if HAVE_NL_LANGINFO && HAVE__NL_MEASUREMENT_MEASUREMENT
+#if defined(HAVE_NL_LANGINFO) && defined(HAVE__NL_MEASUREMENT_MEASUREMENT)
 	fmt = nl_langinfo (_NL_MEASUREMENT_MEASUREMENT);
 
 	if (fmt && *fmt == 2)
